package domain

import (
	"context"
)

type Repo interface {
	Upload(ctx context.Context, message *Message) error

	GetByUserID(ctx context.Context, fromID, toID int) (*[]Message, error)

	GetByMsg(ctx context.Context, msg string, userID int) (*[]Message, error)

	Delete(ctx context.Context, id int64) error
}
